package com.wanwu.channel.tools;


import com.wanwu.channel.common.util.DingUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 *
 * created by xiaowei 2020-04-23
 */
@Component
public class DingAlarmTool {


    @Value("${mq.ding.appKey}")
    private String dingKey;

    /**
     *
     * @param alarmMsg
     */
    public void alarm(String alarmMsg) {
        DingUtil.sendDingAtPeople(dingKey, "渠道系统告警", alarmMsg, null);
    }

}
